package workspace.teaweb.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;


@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum StatusCode {
    SUCCESS(2000, "OK"),
    LOGIN_SUCCESS(2001, "登录成功"),
    OPERATION_SUCCESS(2002, "操作成功"),
    OPERATION_FAILED(2003, "操作失败"),
    NOT_LOGIN(4000, "未登录"),
    USERNAME_PASSWORD_ERROR(4001, "用户名或密码错误"),
    USERNAME_ALREADY_EXISTS(5003, "用户名被占用"),
    VALIDATED_ERROR(6000, "参数校验失败"),
    DATA_UNEXISTS(5004, "请求数据不存在");
    private Integer state;
    private String message;
}
